﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
using System.ComponentModel.Composition;

namespace CodeJumper
{
    //[ContentType("text"), Export(typeof(IKeyProcessorProvider)), Order(Before = "VisualStudioKeyboardProcessor"), Name("CodeJumpKeyboardProcessor"), TextViewRole(PredefinedTextViewRoles.Interactive)]
    //class KeyboardProcessorProvider : IKeyProcessorProvider
    //{
    //    public KeyProcessor GetAssociatedProcessor(IWpfTextView wpfTextView)
    //    {
    //        Func<KeyboardProcessor> creator = null;
    //        try
    //        {
    //            if (creator == null)
    //            {
    //                creator = delegate
    //                {
    //                    return new KeyboardProcessor(wpfTextView);
    //                };
    //            }
    //            return wpfTextView.Properties.GetOrCreateSingletonProperty<KeyboardProcessor>(creator);
    //        }
    //        catch (Exception)
    //        {
    //            return null;
    //        }

    //    }

    //}
}
